package com.yueya.api.comment;

import java.util.Map;

import com.jfinal.aop.Duang;
import com.jfinal.kit.JsonKit;
import com.yueya.common.action.ApiController;

import net.sf.json.JSONObject;

/**
 * 评论
 * 
 * @author yangfeng
 * 
 */
public class ICommentController extends ApiController {

	public void index() {
	}

	// 增加评论
	public void addComment() {
		JSONObject jo = this.getJson();
		Map<String, Object> map = Duang.duang(ICommentService.class).addComment(jo);
		renderJson(JsonKit.toJson(map));
	}

	// 获取
	public void getPageList() {
		JSONObject jo = this.getJson();
		Map<String, Object> map = Duang.duang(ICommentService.class).getPageList(jo);
		renderJson(JsonKit.toJson(map));
	}
	
	

}
